<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>招聘会推荐 - 职场社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --secondary: #0f766e;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --border-gray: #cbd5e1;
            --danger: #ef4444;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary-light);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-subtitle {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 2rem 0 1.25rem;
            color: var(--dark);
        }
        
        .filter-bar {
            background-color: white;
            border-radius: 8px;
            padding: 1rem 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-label {
            font-weight: 500;
            color: var(--gray);
        }
        
        .form-select {
            border-color: var(--border-gray);
            padding: 0.375rem 1.75rem 0.375rem 0.75rem;
        }
        
        .job-fair-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.2s;
            margin-bottom: 1.5rem;
        }
        
        .job-fair-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        }
        
        /* 布局1: 左侧单图，右侧信息 */
        .layout-1 {
            display: flex;
            flex-wrap: wrap;
        }
        
        .layout-1 .fair-image-container {
            flex: 0 0 220px;
            height: 160px;
        }
        
        .layout-1 .fair-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .layout-1 .fair-content {
            flex: 1;
            padding: 1.25rem;
            min-width: 300px;
        }
        
        /* 布局2: 顶部多图，底部信息 */
        .layout-2 .fair-images-container {
            display: flex;
            height: 180px;
        }
        
        .layout-2 .fair-image {
            flex: 1;
            height: 100%;
            object-fit: cover;
            border-right: 1px solid white;
        }
        
        .layout-2 .fair-image:last-child {
            border-right: none;
        }
        
        .layout-2 .fair-content {
            padding: 1.25rem;
        }
        
        /* 布局3: 无图，纯信息展示 */
        .layout-3 .fair-content {
            padding: 1.5rem;
        }
        
        /* 布局4: 网格卡片式 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .grid-card .fair-image-container {
            height: 160px;
            width: 100%;
        }
        
        .grid-card .fair-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .grid-card .fair-content {
            flex: 1;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .grid-card .fair-stats {
            margin-top: auto;
        }
        
        /* 招聘会内容样式 */
        .fair-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            text-decoration: none;
        }
        
        .fair-title:hover {
            color: var(--primary);
        }
        
        .fair-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 0.75rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .fair-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .fair-description {
            color: var(--dark);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .fair-host {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .host-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .host-name {
            font-weight: 500;
        }
        
        .fair-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 0.75rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .stats {
            display: flex;
            gap: 1.25rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 无图占位 */
        .no-image-placeholder {
            width: 100%;
            height: 100%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
        }
        
        /* 标签样式 */
        .fair-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .fair-tag {
            background-color: var(--light-gray);
            color: var(--gray);
            padding: 0.25rem 0.75rem;
            border-radius: 30px;
            font-size: 0.85rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .layout-1 .fair-image-container {
                flex: 0 0 100%;
                height: 180px;
            }
            
            .filter-options {
                gap: 0.75rem 1rem;
            }
            
            .filter-group {
                flex: 1 0 40%;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-briefcase"></i>
                职场社交
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto gap-4">
                    <li class="nav-item"><a href="#" class="nav-link">首页</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">职位</a></li>
                    <li class="nav-item"><a href="#" class="nav-link active">招聘会</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">公司</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">社区</a></li>
                    <li class="nav-item">
                        <a href="#" class="nav-link" title="个人中心">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 32px; height: 32px;">
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <h1 class="section-title">
            <i class="fas fa-users"></i>
            热门招聘会推荐
        </h1>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-options">
                <div class="filter-group">
                    <span class="filter-label">城市:</span>
                    <select class="form-select">
                        <option value="">全部城市</option>
                        <option value="beijing">北京</option>
                        <option value="shanghai">上海</option>
                        <option value="guangzhou">广州</option>
                        <option value="shenzhen">深圳</option>
                    </select>
                </div>
                
                <div class="filter-group">
                    <span class="filter-label">日期:</span>
                    <select class="form-select">
                        <option value="">全部日期</option>
                        <option value="week">本周</option>
                        <option value="month">本月</option>
                        <option value="quarter">本季度</option>
                    </select>
                </div>
                
                <div class="filter-group">
                    <span class="filter-label">类型:</span>
                    <select class="form-select">
                        <option value="">全部类型</option>
                        <option value="campus">校园招聘</option>
                        <option value="social">社会招聘</option>
                        <option value="specialized">行业专场</option>
                        <option value="online">线上招聘会</option>
                    </select>
                </div>
                
                <div class="filter-group">
                    <span class="filter-label">排序:</span>
                    <select class="form-select">
                        <option value="recommend">推荐</option>
                        <option value="hot">热门</option>
                        <option value="latest">最新发布</option>
                        <option value="date">按日期</option>
                    </select>
                </div>
            </div>
        </div>
        
        <!-- 布局1: 左侧单图，右侧信息 -->
        <h2 class="section-subtitle">精选推荐</h2>
        
        <div class="job-fair-card layout-1">
            <div class="fair-image-container">
                <img src="https://picsum.photos/400/300?random=10" alt="2023年秋季大型综合招聘会" class="fair-image">
            </div>
            <div class="fair-content">
                <a href="#" class="fair-title">2023年秋季大型综合招聘会</a>
                
                <div class="fair-meta">
                    <div class="fair-meta-item">
                        <i class="far fa-calendar-alt"></i>
                        <span>2023-10-28 09:00-16:00</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        <span>北京市朝阳区国际会议中心</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-building"></i>
                        <span>300+ 企业</span>
                    </div>
                </div>
                
                <div class="fair-tags">
                    <span class="fair-tag">综合类</span>
                    <span class="fair-tag">社会招聘</span>
                    <span class="fair-tag">秋季</span>
                </div>
                
                <p class="fair-description">
                    2023年秋季大型综合招聘会将汇集300多家知名企业，提供超过10000个就业岗位，涵盖IT、金融、教育、医疗等多个行业，为求职者提供广阔的就业选择。
                </p>
                
                <div class="fair-host">
                    <img src="https://picsum.photos/100/100?random=20" alt="张招聘" class="host-avatar">
                    <div>
                        <span class="host-name">张招聘</span>
                        <span class="text-muted"> · 北京人才市场</span>
                    </div>
                </div>
                
                <div class="fair-stats">
                    <div class="stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i>
                            <span>12,589</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>342</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-user-check"></i>
                            <span>2,845 人报名</span>
                        </div>
                    </div>
                    
                    <div class="actions">
                        <button class="action-btn" onclick="toggleLike(this)">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn" onclick="toggleSave(this)">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局2: 顶部多图，底部信息 -->
        <h2 class="section-subtitle">行业专场招聘会</h2>
        
        <div class="job-fair-card layout-2">
            <div class="fair-images-container">
                <img src="https://picsum.photos/400/300?random=11" alt="科技行业招聘会现场" class="fair-image">
                <img src="https://picsum.photos/400/300?random=12" alt="科技行业招聘会企业展位" class="fair-image">
                <img src="https://picsum.photos/400/300?random=13" alt="科技行业招聘会求职者" class="fair-image">
            </div>
            <div class="fair-content">
                <a href="#" class="fair-title">2023年高科技产业人才专场招聘会</a>
                
                <div class="fair-meta">
                    <div class="fair-meta-item">
                        <i class="far fa-calendar-alt"></i>
                        <span>2023-11-12 09:00-17:00</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-map-marker-alt"></i>
                        <span>上海市浦东新区科技会展中心</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-building"></i>
                        <span>150+ 科技企业</span>
                    </div>
                </div>
                
                <div class="fair-tags">
                    <span class="fair-tag">IT/互联网</span>
                    <span class="fair-tag">高科技</span>
                    <span class="fair-tag">行业专场</span>
                </div>
                
                <p class="fair-description">
                    本次高科技产业人才专场招聘会聚焦人工智能、大数据、云计算、集成电路等前沿领域，汇聚阿里巴巴、腾讯、华为等150多家知名科技企业，提供算法工程师、软件开发者、产品经理等热门岗位。
                </p>
                
                <div class="fair-host">
                    <img src="https://picsum.photos/100/100?random=21" alt="李科技" class="host-avatar">
                    <div>
                        <span class="host-name">李科技</span>
                        <span class="text-muted"> · 上海高科技人才交流中心</span>
                    </div>
                </div>
                
                <div class="fair-stats">
                    <div class="stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i>
                            <span>8,921</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>256</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-user-check"></i>
                            <span>1,987 人报名</span>
                        </div>
                    </div>
                    
                    <div class="actions">
                        <button class="action-btn liked" onclick="toggleLike(this)">
                            <i class="fas fa-heart"></i>
                            <span>已点赞</span>
                        </button>
                        <button class="action-btn" onclick="toggleSave(this)">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局3: 无图，纯信息展示 -->
        <h2 class="section-subtitle">线上招聘会</h2>
        
        <div class="job-fair-card layout-3">
            <div class="fair-content">
                <a href="#" class="fair-title">2023年冬季全国网络招聘会</a>
                
                <div class="fair-meta">
                    <div class="fair-meta-item">
                        <i class="far fa-calendar-alt"></i>
                        <span>2023-12-01 至 2023-12-15</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-globe-americas"></i>
                        <span>线上举办</span>
                    </div>
                    <div class="fair-meta-item">
                        <i class="fas fa-building"></i>
                        <span>500+ 企业</span>
                    </div>
                </div>
                
                <div class="fair-tags">
                    <span class="fair-tag">线上招聘会</span>
                    <span class="fair-tag">全国</span>
                    <span class="fair-tag">冬季</span>
                </div>
                
                <p class="fair-description">
                    2023年冬季全国网络招聘会将持续15天，采用线上直播+云招聘的形式，求职者可在线与企业HR实时沟通、投递简历。本次招聘会涵盖各行各业，为不能参加线下招聘会的求职者提供便利。
                </p>
                
                <div class="fair-host">
                    <img src="https://picsum.photos/100/100?random=22" alt="王线上" class="host-avatar">
                    <div>
                        <span class="host-name">王线上</span>
                        <span class="text-muted"> · 全国人才流动中心</span>
                    </div>
                </div>
                
                <div class="fair-stats">
                    <div class="stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i>
                            <span>25,678</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>876</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-user-check"></i>
                            <span>12,345 人报名</span>
                        </div>
                    </div>
                    
                    <div class="actions">
                        <button class="action-btn" onclick="toggleLike(this)">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn saved" onclick="toggleSave(this)">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局4: 网格卡片式 -->
        <h2 class="section-subtitle">校园招聘会</h2>
        
        <div class="grid-layout">
            <!-- 网格卡片1 -->
            <div class="job-fair-card grid-card">
                <div class="fair-image-container">
                    <img src="https://picsum.photos/400/300?random=14" alt="北京大学2024届毕业生招聘会" class="fair-image">
                </div>
                <div class="fair-content">
                    <a href="#" class="fair-title">北京大学2024届毕业生招聘会</a>
                    
                    <div class="fair-meta">
                        <div class="fair-meta-item">
                            <i class="far fa-calendar-alt"></i>
                            <span>2023-11-05</span>
                        </div>
                        <div class="fair-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>北京大学体育馆</span>
                        </div>
                    </div>
                    
                    <p class="fair-description">
                        北京大学2024届毕业生招聘会将邀请200多家用人单位，为应届毕业生提供就业和实习机会。
                    </p>
                    
                    <div class="fair-host">
                        <img src="https://picsum.photos/100/100?random=23" alt="刘老师" class="host-avatar">
                        <span class="host-name">刘老师</span>
                    </div>
                    
                    <div class="fair-stats">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>5,678</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>124</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 网格卡片2 (无图) -->
            <div class="job-fair-card grid-card">
                <div class="fair-image-container">
                    <div class="no-image-placeholder">
                        <i class="fas fa-university fa-2x"></i>
                    </div>
                </div>
                <div class="fair-content">
                    <a href="#" class="fair-title">清华大学2024届校园双选会</a>
                    
                    <div class="fair-meta">
                        <div class="fair-meta-item">
                            <i class="far fa-calendar-alt"></i>
                            <span>2023-11-12</span>
                        </div>
                        <div class="fair-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>清华大学综合体育馆</span>
                        </div>
                    </div>
                    
                    <p class="fair-description">
                        清华大学2024届校园双选会面向全校毕业生，提供各类就业岗位，覆盖多个专业领域。
                    </p>
                    
                    <div class="fair-host">
                        <img src="https://picsum.photos/100/100?random=24" alt="孙老师" class="host-avatar">
                        <span class="host-name">孙老师</span>
                    </div>
                    
                    <div class="fair-stats">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>4,321</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>98</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn liked" onclick="toggleLike(this)">
                                <i class="fas fa-heart"></i>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 网格卡片3 -->
            <div class="job-fair-card grid-card">
                <div class="fair-image-container">
                    <img src="https://picsum.photos/400/300?random=15" alt="上海交通大学校园招聘会" class="fair-image">
                </div>
                <div class="fair-content">
                    <a href="#" class="fair-title">上海交通大学校园招聘会</a>
                    
                    <div class="fair-meta">
                        <div class="fair-meta-item">
                            <i class="far fa-calendar-alt"></i>
                            <span>2023-11-18</span>
                        </div>
                        <div class="fair-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>上海交通大学闵行校区</span>
                        </div>
                    </div>
                    
                    <p class="fair-description">
                        上海交通大学校园招聘会将吸引众多知名企业参与，为毕业生提供丰富的就业选择。
                    </p>
                    
                    <div class="fair-host">
                        <img src="https://picsum.photos/100/100?random=25" alt="赵老师" class="host-avatar">
                        <span class="host-name">赵老师</span>
                    </div>
                    
                    <div class="fair-stats">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>3,890</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>76</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="action-btn saved" onclick="toggleSave(this)">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-5 mb-3">
            <button class="btn btn-outline" style="padding: 0.6rem 2rem; font-size: 1rem;">
                <i class="fas fa-spinner"></i>
                加载更多招聘会
            </button>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 点赞功能
        function toggleLike(button) {
            const icon = button.querySelector('i');
            const text = button.querySelector('span');
            
            if (icon.classList.contains('far')) {
                // 未点赞 -> 点赞
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('liked');
                if (text) text.textContent = '已点赞';
                showToast('点赞成功');
            } else {
                // 已点赞 -> 取消点赞
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('liked');
                if (text) text.textContent = '点赞';
                showToast('已取消点赞');
            }
        }
        
        // 收藏功能
        function toggleSave(button) {
            const icon = button.querySelector('i');
            const text = button.querySelector('span');
            
            if (icon.classList.contains('far')) {
                // 未收藏 -> 收藏
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('saved');
                if (text) text.textContent = '已收藏';
                showToast('收藏成功');
            } else {
                // 已收藏 -> 取消收藏
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('saved');
                if (text) text.textContent = '收藏';
                showToast('已取消收藏');
            }
        }
        
    </script>
</body>
</html>
    

